{% extends 'website/frontend_base.html' %}

{% block title %}{{ activity.title }}{% endblock %}

{% block external_head %}{% endblock %}


{% block left %}
    <div class="col-md-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">活动报名</h3>
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-12 text-center">
                        <h1>{{ activity.title }}</h1>
                        <h4>活动地点：{{ activity.address }}</h4>
                        <h4>开始时间：{{ activity.start_time|date:"Y-m-d " }}{{ activity.start_time|time:"H:i:s" }}</h4>
                        <h4>结束时间：{{ activity.closing_time|date:"Y-m-d " }}{{ activity.closing_time|time:"H:i:s" }}</h4>
                        <h4>报名截止：{{ activity.entry_closing_time|date:"Y-m-d " }}{{ activity.entry_closing_time|time:"H:i:s" }}</h4>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <form class="form-horizontal" method="post" id="data-form" enctype="multipart/form-data">
                            {% csrf_token %}
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">姓名:</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="name" name="name" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="student_id" class="col-sm-2 control-label">学号:</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="student_id" name="student_id" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="level" class="col-sm-2 control-label">入学年份:</label>
                                <div class="col-sm-9">
                                    <input type="number" class="form-control" id="level" name="level" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="sex" class="col-sm-2 control-label">性别:</label>
                                <div class="col-sm-9">
                                    <div class="radio">
                                        <label>
                                            <input type="radio" name="sex" value="M" checked>
                                            男
                                        </label>
                                        <label>
                                            <input type="radio" name="sex" value="F">
                                            女
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="tel" class="col-sm-2 control-label">电话:</label>
                                <div class="col-sm-9">
                                    <input type="tel" class="form-control" id="tel" name="tel" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-3 col-sm-2">
                                    <button type="submit" class="btn btn-primary" id="submit-btn">提交</button>
                                </div>
                                <div class="col-sm-offset-3 col-sm-2">
                                    <button type="reset" class="btn btn-warning">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}


{% block js %}

{% endblock %}